<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="s" uri="/struts-tags" %>

<html>
<head>
    <title>Title</title>
</head>
<script src="js/jquery-3.1.1.js" type="text/javascript"></script>
<style>
    #tbnews{
        height: 300px;
        width:100%;
        margin:10px auto;
    }
    #box{
        width:300px;
        height: 30px;
        margin: 0 auto;
    }
    .box1{
        height: 30px;
    }
    .arrow{
         margin-left: 1000px;}


</style>
<body>
<form action="searchs">
    <div id="box"><input type="text"  name="keyword" class="box1" placeholder="请输入关键字">
<input type="submit" value="搜索"></div>
</form>

<table id="tbnews" border="1px">
    <tr id="trr">
        <th>员工姓名</th>
        <th>职务</th>
        <th>入职日期</th>
        <th>薪水</th>
        <th>所在部门</th>
        <th>删除</th>
    </tr>
    <s:iterator value="#attr.list" id="n">
    <br>
    <tr>
        <th><s:property value="#n.ename"/></th>
        <th> <s:property value="#n.job"/></th>
        <th><s:property value="#n.hiredate"/></th>
        <th><s:property value="#n.sal"/></th>
        <th><s:property value="#n.deptid"/></th>
        <th> <a onclick="javascript:if (confirm('确定删除吗？')) { return true;}else{return false;};" href="delete?id=<s:property value="#n.id"/>">删除</a></th>

    </tr>
    <br/>
    </s:iterator>
    <div class="arrow">
        <s:fielderror cssStyle="color:red">
            <s:param>error</s:param>
        </s:fielderror>
    </div>
</table>

</body>
</html>
